package com.qkjia.springcloud.eurekasecurityserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 运行eureka-security-server，访问http://localhost:8004发现需要登录认证
 */
@EnableEurekaServer//开启注册中心
@SpringBootApplication
public class EurekaSecurityServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaSecurityServerApplication.class, args);
    }


}
/**
 * eureka-client注册到有登录认证的注册中心
 * 配置文件中需要修改注册中心地址格式
 * http://${username}:${password}@${hostname}:${port}/eureka/
 */
